from selenium import webdriver
from selenium.webdriver.common.by import By

driver = webdriver.Chrome()
driver.get('http://192.168.20.244/ecshop/admin')
driver.maximize_window()

driver.find_element(By.NAME, 'username').send_keys('caichang')
driver.find_element(By.XPATH, '//input[@placeholder="请输入密码"]').send_keys('caichang1')
driver.find_element(By.CLASS_NAME, 'btn-a').click()
